package com.zsy.test;

import com.zsy.domain.strategy.model.entity.StrategyAwardEntity;
import com.zsy.domain.strategy.respository.IStrategyRepository;
import com.zsy.infrastructure.redis.IRedisService;
import com.zsy.infrastructure.repository.StrategyRepository;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.redisson.api.RMap;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class  ApiTest {

    @Resource
    private IStrategyRepository repository;
    @Test
    public void test() {
        Long strategyId = 100001L;
        // 1.查询配置
        List<StrategyAwardEntity> strategyAwardEntities = repository.queryStrategyAwardList(strategyId);

        log.info("Redis测试结果:{}",strategyAwardEntities.toString());
    }

}
